ip ospf authentication-key auth_key

This command sets the OSPF authentication key to a simple password. After setting AUTH_KEY, all OSPF packets are authenticated.

Syntax

 ip ospf authentication-key auth_key [a.b.c.d] 
no ip ospf authentication-key [a.b.c.d]  

Command

Description

auth_key

Defines the OSPF password (key).

a.b.c.d

Address of the interface

Default

NA

Command Mode

Privileged User

Example

This example sets the OSPF authentication key to a simple password.

(config-data)# interface vlan1 
(conf-if-VLAN 1)# ip ospf authentication-key passx